#ifndef FILEMANAGER_H
#define FILEMANAGER_H

#include <QtWidgets/QMainWindow>
#include "ui_filemanager.h"
#include <QStandardItemModel>
#include <QPoint>
#include "PathInfoReader.h"
#include <QDir>
#include "FileSystemModal.h"
class MoveFileThread;
class FileManager : public QMainWindow
{
	Q_OBJECT

public:
	FileManager(QWidget *parent = 0);
	virtual ~FileManager();

private:
	Ui::FileManagerClass ui;
	FileSystemModal* filesys_modal_;
	QStandardItemModel* paths_modal_;	
	PathInfoReader reader_;
	std::vector<PathInfo> vec_path_;
	QMenu *cmenu_;
	MoveFileThread* thread_;
	QString cur_dir_path_;
private:
	void initialPathModal();
	void initialFileSysModal();
	void initialMenu();
	void initialToolBar();
	void initialVals();
private slots:
	void onOpenFolder();	
	void onMoveTo(const QString& str);
	void onContextMenuPaths( QPoint point);
};

#endif // FILEMANAGER_H
